package com.mt.mtbusinessmanagementsystem.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

@Builder
@Repository
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Employee {
    private Integer id;
    private String account;
    private String password;
    private String employeeId;
    private String employeeName;
    private Integer age;
    private Integer gender;
    private Integer deptId;
    private Integer postsId;
    private String employeeEmail;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;
    private Integer state;
    private String imageUrl;
    private String phone;
}
